#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <DMainWindow>
#include <DTitlebar>
#include <QDebug>
#include <QPushButton>
#include "stagemodepage.h"
DWIDGET_USE_NAMESPACE

namespace Ui {
class MainWindow;
}

class MainWindow : public DMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    bool themeIsDark;
    void setTheme(bool);

private slots:

private:
    QPushButton *backButton=new QPushButton;
    void closeEvent(QCloseEvent *e);
    Ui::MainWindow *ui;
    void setTitlebarColor();
};

#endif // MAINWINDOW_H
